package com.code.user.model.po;

import com.code.commons.model.po.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Id;

/**
 * 用户操作权限PO及持久层对象
 *
 * @author tangyifei
 * @since 2020年2月11日09:19:42
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户操作权限PO及持久层对象")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserOperateAuth extends BasePO<String> {

    private static final long serialVersionUID = 1435844787898111740L;

    @ApiModelProperty(value = "主键 非必填", example = "1")
    @Id
    @Length(min = 1, max = 64)
    private String id;

    @ApiModelProperty(value = "用户主键 必填", example = "1")
    @Length(min = 1, max = 64)
    private String userId;

    @ApiModelProperty(value = "操作类型(1提币 2站内转账)", example = "1")
    private Integer operateType;

    @ApiModelProperty(value = "操作码", example = "WITHDRAW")
    private String operateCode;

    @ApiModelProperty(value = "操作状态（1禁止 0放行）", example = "1")
    private Integer operateState;

}
